package com.intretech.umsin.oss;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @version V1.0
 * @ClassName: App
 * @Description: App 服务实现
 * @author: 李启联
 * @date: 2022-04-26 11:19
 * @Copyright: Copyright (c) 2022
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.intretech.umsin.oss.mapper")
@EnableAsync
@EnableDiscoveryClient
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = SpringApplication.run(App.class, args);
        log.info("初始化spring bean个数：{}.", ctx.getBeanDefinitionCount());
        for (String beanDefinitionName : ctx.getBeanDefinitionNames()) {
            log.info("初始化spring bean：{}.", beanDefinitionName);
        }
    }

}